🎖️GitЯра🎖️
Node / meshtastic / Meshtastic-Android / files / androidApp / src / main / kotlin / org / meshtastic / app / di / OkHttpNetworkInstrumentation.kt
Displaying Raw • Download
androidApp/src/main/kotlin/org/meshtastic/app/di/OkHttpNetworkInstrumentation.kt 9613ba91a7e169afe8ce2e98c6d384ef37f03421 (9613ba91) Text, 1.73 KB
T8b949e/*
* Copyright (c) 2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.app.di
Tff7b72import T7ee787okhttp3.EventListener
Tff7b72import T7ee787okhttp3.Interceptor
T8b949e/**
* Flavor-provided OkHttp instrumentation applied to the shared Ktor [io.ktor.client.HttpClient] built in
* [NetworkModule.provideHttpClient].
*
* The Android Ktor engine lives in the shared `src/main` source set, so it is compiled into both the google and fdroid
* flavors. This holder is the seam that keeps analytics out of fdroid: the google `FlavorModule` supplies Datadog's
* `DatadogInterceptor` + `DatadogEventListener.Factory` (so RUM captures per-request DNS/connect/SSL/download timing
* for first-party hosts), while the fdroid `FlavorModule` supplies [NONE], pulling in no Datadog artifact at all.
*/
Tff7b72class T56d364OkHttpNetworkInstrumentationTb4b4b4(
Tff7b72val Te6edf3interceptorsTb4b4b4: Te6edf3ListTff7b72<Te6edf3InterceptorTff7b72> Tff7b72= Te6edf3emptyListTb4b4b4(Tb4b4b4)Tb4b4b4,
Tff7b72val Te6edf3eventListenerFactoryTb4b4b4: Te6edf3EventListenerTb4b4b4.Te6edf3FactoryTff7b72? Tff7b72= Tff7b72nullTb4b4b4,
Tb4b4b4) Tb4b4b4{
Tff7b72companion Tff7b72object Tb4b4b4{
T8b949e/** No-op instrumentation — used by the analytics-free fdroid flavor. */
Tff7b72val Te6edf3NONE Tff7b72= Te6edf3OkHttpNetworkInstrumentationTb4b4b4(Tb4b4b4)
Tb4b4b4}
Tb4b4b4}
Served by rngit 1.5.0 - Generated in 0.04s